Skip to content

Conversation

@SS-JIA
Copy link
Contributor

@SS-JIA SS-JIA commented Sep 5, 2025

Stack from ghstack (oldest at bottom):

The current implementations of choose_qparams are too slow to be practically usable.

As a temporary workaround to unblock LLM optimizations, this diff/PR introduces a fast path for computing per-channel quantization parameters for 2D matrices in the form of the choose_qparams_per_row shader.

Differential Revision: D81800024

The current implementations of `choose_qparams` are too slow to be practically usable.

As a temporary workaround to unblock LLM optimizations, this diff/PR introduces a fast path for computing per-channel quantization parameters for 2D matrices in the form of the choose_qparams_per_row shader.

Differential Revision: [D81800024](https://our.internmc.facebook.com/intern/diff/D81800024/)

[ghstack-poisoned]
@pytorch-bot
Copy link

pytorch-bot bot commented Sep 5, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/14019

Note: Links to docs will display an error until the docs builds have been completed.

❌ 1 New Failure

As of commit 2ee5b97 with merge base 1a7441f (image):

NEW FAILURE - The following job has failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 5, 2025
@github-actions
Copy link

github-actions bot commented Sep 5, 2025

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D81800024

ssjia and others added 2 commits September 7, 2025 10:54
The current implementations of `choose_qparams` are too slow to be practically usable.

As a temporary workaround to unblock LLM optimizations, this diff/PR introduces a fast path for computing per-channel quantization parameters for 2D matrices in the form of the choose_qparams_per_row shader.

Differential Revision: [D81800024](https://our.internmc.facebook.com/intern/diff/D81800024/)

[ghstack-poisoned]
The current implementations of `choose_qparams` are too slow to be practically usable.

As a temporary workaround to unblock LLM optimizations, this diff/PR introduces a fast path for computing per-channel quantization parameters for 2D matrices in the form of the choose_qparams_per_row shader.

Differential Revision: [D81800024](https://our.internmc.facebook.com/intern/diff/D81800024/)

[ghstack-poisoned]
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D81800024

@facebook-github-bot facebook-github-bot merged commit 6ec3deb into gh/SS-JIA/320/base Sep 8, 2025
115 of 118 checks passed
@facebook-github-bot facebook-github-bot deleted the gh/SS-JIA/320/head branch September 8, 2025 00:05
SS-JIA pushed a commit that referenced this pull request Sep 8, 2025
Pull Request resolved: #14019

The current implementations of `choose_qparams` are too slow to be practically usable.

As a temporary workaround to unblock LLM optimizations, this diff/PR introduces a fast path for computing per-channel quantization parameters for 2D matrices in the form of the choose_qparams_per_row shader.
ghstack-source-id: 308092877
@exported-using-ghexport

Differential Revision: [D81800024](https://our.internmc.facebook.com/intern/diff/D81800024/)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants